<template>
  <div id="professional-schedule-query-main">
    <div
      class="wrapper-container"
      style="display: flex; flex-direction: column; width: 100%"
    >
      <div class="search-container">
        <div
          class="search-container-left"
          style="display: flex; align-items: center; width: 65%"
        >
          <div
            class="search-container-item"
            v-for="(select, index) in selectList1"
            :key="index"
          >
            <div v-if="select.type === 'select'" class="box">
              <span v-show="select.name">{{ select.name }}</span>

              <el-select
                v-model="select.val"
                style="width: 120px"
                size="mini"
                placeholder="请选择"
                clearable
              >
                <el-option
                  v-for="item in select.valList"
                  :key="item.id"
                  :label="item.name"
                  :value="item.id"
                >
                </el-option>
              </el-select>
            </div>
          </div>
          <div class="box select-dialog" v-show="visualChange">
            <span style="padding-top: 2px">专业班次：</span>
            <el-tooltip v-if="multipleSelection && multipleSelection.length > 0" class="item" effect="dark" placement="right">
              <div slot="content">
                <div
                  v-for="(item, index) in multipleSelection"
                  :key="index"
                  style="
                    width: 300px;
                    height: 28px;
                    overflow: hidden;
                    display: flex;
                    align-items: center;
                  "
                >
                  {{ item.className }}
                </div>
              </div>
              <div @click="editZYBC('more')" class="zybc-select" style="overflow: hidden;">
                <div class="show">
                  <div
                    v-for="(item, index) in multipleSelection"
                    :key="index"
                    style="
                     width: 300px;
                    height: 28px;
                    overflow: hidden;
                    display: flex;
                    align-items: center;
                  "
                  >
                    {{ item.className }}
                  </div>
                </div>
              </div>
            </el-tooltip>
            <div v-else @click="editZYBC('more')" class="zybc-select">
              <div class="show">
                <div
                  v-for="(item, index) in multipleSelection"
                  :key="index"
                  style="
                    height: 28px;
                    overflow: hidden;
                    display: flex;
                    align-items: center;
                  "
                >
                  {{ item.className }}
                </div>
              </div>
              <!-- <i class="el-icon-delete del-icon" @click.stop="deletedInfo"></i> -->
            </div>
          </div>
          <div class="box select-dialog" v-show="!visualChange">
            <span>专业班次：</span>

            <el-tooltip v-if="multipleSelection && multipleSelection.length > 0" class="item" effect="dark" placement="right">
              <div slot="content">
                <div
                  v-for="(item, index) in multipleSelection"
                  :key="index"
                  style="
                  width: 300px;
                    height: 28px;
                    overflow: hidden;
                    display: flex;
                    align-items: center;
                  "
                >
                  {{ item.className }}
                </div>
              </div>

              <div @click="editZYBC('single')" class="zybc-select" style="overflow:hidden;">
                <div class="show">
                  <div
                    v-for="(item, index) in multipleSelection"
                    :key="index"
                    style="
                    width: 300px;
                    height: 28px;
                    overflow: hidden;
                    display: flex;
                    align-items: center;
                  "
                  >
                    {{ item.className }}
                  </div>
                </div>
                <!-- <i class="el-icon-delete del-icon" @click.stop="deletedInfo"></i> -->
              </div>
            </el-tooltip>

            <div v-else @click="editZYBC('single')" class="zybc-select">
              <div class="show">
                <div
                  v-for="(item, index) in multipleSelection"
                  :key="index"
                  style="
                    height: 28px;
                    width: 120px;
                    overflow: hidden;
                    display: flex;
                    align-items: center;
                  "
                >
                  {{ item.className }}
                </div>
              </div>
              <!-- <i class="el-icon-delete del-icon" @click.stop="deletedInfo"></i> -->
            </div>
          </div>
          <div
            class="search-button"
            style="margin-left: 20px"
            @click="queryZYBC_class"
          >
            <img src="../../../../assets/assessment/icon-search.png" alt="" />
            <span>查询</span>
          </div>
          <div
            class="search-button"
            style="margin-left: 20px"
            @click="resetAll"
          >
            <!-- <img src="../../../../assets/assessment/icon-search.png" alt="" /> -->
            <span>重置</span>
          </div>
        </div>
        <div class="export-right1" style="width: 30%">
          <div class="change-visual">
            <div
              :class="visualChange ? 'active' : ''"
              @click="changeVisual(true)"
            >
              多班一表
            </div>
            <div
              :class="visualChange ? '' : 'active'"
              @click="changeVisual(false)"
            >
              一班一表
            </div>
          </div>
          <div
            class="export-top"
            style="margin-right: 20px"
            @click="exportData()"
          >
            <img src="../../../../assets/assessment/icon-export.png" alt="" />
            <span>&ensp;导出Excel</span>
            <!-- <download-excel
                class="export-btn"
                :data="tableData"
                :fields="jsonFields"
                type="xls"
                name="时间段课表.xls"
                style="color: #f3b815"
              >
              </download-excel> -->
          </div>
        </div>
      </div>
    </div>

    <div class="body-manual-container-more" v-show="visualChange">
      <div>
        <ul v-for="data in tableListMore">
          <li>
            <span class="active"><div>星期</div></span>
            <span class="active"><div>节次</div></span>
            <span class="active"
              ><div>{{ data.name }}</div></span
            >
          </li>
          <li v-for="(item, index) in data.courseList" :key="index">
            <div class="day-list" style="width:249px">{{ item.xq }}</div>
            <div style="width:calc(100% - 250px)">
              <div v-for="list in item.list" class="section-item">
                <div class="section">
                  {{ list.jc }}
                </div>
                <div class="text">
                  {{ list.kc }}
                </div>
              </div>
            </div>
          </li>
          <li>
            <span style="width:250px"><div>备注</div></span>
            <span style="width: calc(100% - 250px)"><div></div></span>
          </li>
        </ul>
      </div>
    </div>

    <div class="body-manual-container" v-show="!visualChange">
      <div>
        <ul>
          <li>
            <span><div>节次</div></span>
            <span><div>星期一</div></span>
            <span><div>星期二</div></span>
            <span><div>星期三</div></span>
            <span><div>星期四</div></span>
            <span><div>星期五</div></span>
            <span><div>星期六</div></span>
            <span><div>星期日</div></span>
          </li>
          <li v-for="(item, index) in tableList" :key="index">
            <span
              ><div>
                <div>{{ item.jc }}</div>
                <br style="clear: both" /></div
            ></span>
            <span
              ><div>
                <div>{{ item.w1 }}</div>
                <br style="clear: both" /></div
            ></span>
            <span
              ><div>{{ item.w2 }}</div></span
            >
            <span
              ><div>{{ item.w3 }}</div></span
            >
            <span
              ><div>{{ item.w4 }}</div></span
            >
            <span
              ><div>{{ item.w5 }}</div></span
            >
            <span
              ><div>{{ item.w6 }}</div></span
            >
            <span
              ><div>{{ item.w7 }}</div></span
            >
          </li>
          <li>
            <span><div>备注</div></span>
            <span><div style="width: 1525px"></div></span>
          </li>
        </ul>
      </div>
    </div>

    <el-dialog
      title="专业班次选择"
      :visible.sync="zybcDialog"
      width="1200px"
      class="xzjy"
    >
      <div>
        <el-row>
          <el-col :span="5" class="tree">
            <el-tree
              default-expand-all
              :data="data"
              :props="defaultProps"
              @node-click="handleNodeClick"
              style="color: #004ca7; background: #f0f2f5;"
            >
              <span slot-scope="{ node, data }" style="width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;">
                <span :title="node.label">{{ node.label }}</span>
              </span>
            </el-tree>
          </el-col>
          <el-col :span="19" style="border-left: 1px solid #004ca7">
            <div
              class="wrapper-container"
              style="display: flex; flex-direction: column; width: 100%"
            >
              <div class="search-container">
                <div class="search-container-left">
                  <div
                    class="search-container-item"
                    v-for="(select, index) in selectList_Teacher"
                    :key="index"
                  >
                    <div v-if="select.type === 'btn'" class="box">
                      <span class="demonstration" v-show="select.name">{{
                        select.name
                      }}</span>
                      <el-input
                        style="width: 120px"
                        v-model="select.val"
                        placeholder="请输入内容"
                      ></el-input>
                    </div>
                  </div>

                  <div class="search-button">
                    <img
                      src="../../../../assets/assessment/icon-search.png"
                      alt=""
                    />
                    <span @click="queryInfo">查询</span>
                  </div>
                  <div class="select-list">
                    <div class="yx">已选：</div>
                    <div class="cont">
                      <div
                        v-for="(item, index) in multipleSelection"
                        :key="index"
                        class="tip"
                      >
                        {{ item.className }}
                      </div>
                    </div>
                  </div>
                </div>
              </div>

              <div class="assessment-container" style="width: 100%">
                <div
                  class="table-container"
                  style="width: 95%; margin: 20px auto 0"
                >
                  <el-table
                    :data="tableData_People"
                    border
                    class="table-data"
                    row-class-name="row-class"
                    cell-class-name="cell-class"
                    header-row-class-name="header-row-class"
                    header-cell-class-name="header-cell-class"
                    style="height: 380px; overflow-y: auto"
                    @selection-change="handleSelectionChange"
                  >
                    <el-table-column align="center" type="selection" width="80">
                    </el-table-column>
                    <el-table-column
                      prop="className"
                      label="专业班次"
                      align="center"
                    >
                    </el-table-column>
                    <el-table-column prop="alias" label="别名" align="center">
                    </el-table-column>
                    <el-table-column
                      prop="studentTeam"
                      label="学员队"
                      align="center"
                    >
                    </el-table-column>
                    <el-table-column
                      prop="specialtyName"
                      label="专业"
                      align="center"
                    >
                    </el-table-column>
                    <el-table-column prop="year" label="年级" align="center">
                    </el-table-column>
                    <el-table-column
                      prop="campus"
                      label="所在校区"
                      align="center"
                    >
                    </el-table-column>
                    <el-table-column
                      prop="ratedNumber"
                      label="额定人数"
                      align="center"
                    >
                    </el-table-column>
                  </el-table>
                </div>
              </div>
            </div>
          </el-col>
        </el-row>
      </div>
      <span slot="footer" class="dialog-footer">
        <el-button type="success" plain @click="submitData()">确 定</el-button>
      </span>
    </el-dialog>

    <el-dialog title="提示" :visible.sync="deletedMessageDialog" width="500px">
      <div class="class-tip">您确定删除专业班次?</div>
      <span slot="footer" class="dialog-footer">
        <el-button class="green" plain @click="deletedInfoSubmit">确 定</el-button>
        <el-button
          class="yellow"
          plain
          @click="deletedMessageDialog = false"
          style="margin-left: 60px"
        >
          取 消
        </el-button>
      </span>
    </el-dialog>
  </div>
</template>

<script>
import {
  kscx_kcb_zyYbyb_one,
  kscx_kcb_zyDbyb_more,
  queryCommonXueqi,
  queryCommonNjNdzy,
  bpksj_query_specialty,
  kscx_kcb_zyYbyb_one_exportZyYbyb,
  kscx_kcb_zyDbyb_more_exportZyDbyb,queryDefaultXueQi
} from "@/api/trainingManagement/place.js";

export default {
  data() {
    return {
      deletedMessageDialog: false, //删除专业班次
      // 选择列表数据
      multipleSelection: [],
      tableData_People: [], //调整后教员表格
      // 校区列表
      data: [],
      defaultProps: {
        children: "children",
        label: "label",
      },
      selectList_Teacher: [
        {
          type: "btn",
          name: "专业班次：",
          val: "",
        },
      ],
      zybcDialog: false, //选择专业班次
      visualChange: true, //true: 多班一表 false: 一班一表
      tableListMore: [], //多班一表 数据
      tableList: [], //
      selectList1: [
        {
          type: "select",
          name: "学期:",
          val: "",
          valList: [],
        },
      ],
      zybcType: "", //专业班次选择类型
      selectTreeRow: {}, //选中树节点
    };
  },
  created() {},
  mounted() {
    if (this.$route.query.xueqi != "" && this.$route.query.xueqi != null) {
      this.selectList1[0].val = this.$route.query.xueqi;
    }
    if (this.$route.query.zybc != "" && this.$route.query.zybc != null) {
      this.multipleSelection = [
        { id: this.$route.query.zybc, className: this.$route.query.zybcMc },
      ];
    }

    this.getDefaultXueQi();
    this.queryCommonXueqi();
  },
  methods: {
    async getDefaultXueQi(){
      queryDefaultXueQi().then(res=>{
        if(res.data.code == 200){
          this.selectList1[0].val = res.data.data;
          // this.semester = res.data.data;
        }
      }).then(()=>{
        // this.queryDAteClass()
      })
    },
    exportData() {
      if (this.visualChange) {
        if (this.multipleSelection.length > 0) {
          var ids = [];
          this.multipleSelection.forEach((item) => {
            ids.push(item.id);
          });
          var data = {
            xueqi: this.selectList1[0].val,
            ids: ids,
          };
          // 多班一班
          kscx_kcb_zyDbyb_more_exportZyDbyb(data).then((res) => {
            /** 获取生成设置好的文件名 */
            /** 接收文件流 */
            const blob = new Blob([res.data]);
            let url = URL.createObjectURL(blob);
            /** 模拟浏览器操作Document，并模拟下载动作 */
            let link = document.createElement("a");
            link.style.display = "none";
            link.href = url;
            link.setAttribute("download", "课表.xlsx");
            document.body.appendChild(link);
            link.click();
          });
        } else {
          this.$message.warning("请先选择专业班次!");
          return;
        }
      } else {
        if (this.multipleSelection.length > 0) {
          var name = this.multipleSelection[0].id; //场地
          var xueqi = this.selectList1[0].val;
          // 一班一表
          kscx_kcb_zyYbyb_one_exportZyYbyb(name, xueqi).then((res) => {
            /** 获取生成设置好的文件名 */
            /** 接收文件流 */
            const blob = new Blob([res.data]);
            let url = URL.createObjectURL(blob);
            /** 模拟浏览器操作Document，并模拟下载动作 */
            let link = document.createElement("a");
            link.style.display = "none";
            link.href = url;
            link.setAttribute("download", "课表.xlsx");
            document.body.appendChild(link);
            link.click();
          });
        } else {
          this.$message.warning("请先选择场地!");
          return;
        }
      }
    },
    queryZYBC_class() {
      if (!this.visualChange) {
        this.queryPlaceTimeTable_One();
      } else {
        this.queryPlaceTimeTable_More();
      }
    },
    async queryPlaceTimeTable_More() {
      if (this.multipleSelection.length > 0) {
        var ids = [];
        this.multipleSelection.forEach((item) => {
          ids.push(item.id);
        });
        // ids = ['92']
        var data = {
          xueqi: this.selectList1[0].val,
          ids: ids,
        };
        const res = await kscx_kcb_zyDbyb_more(data);
        if (res.data.code == 200) {
          this.tableListMore = res.data.data;
        }
      } else {
        this.$message.warning("请先选择专业班次!");
        return;
      }
    },
    async queryPlaceTimeTable_One() {
      if (this.multipleSelection.length > 0) {
        var name = this.multipleSelection[0].id; //场地
        // name = "92";
        var xueqi = this.selectList1[0].val;
        const res = await kscx_kcb_zyYbyb_one(name, xueqi);
        if (res.data.code == 200) {
          this.tableList = res.data.data;
        }
      } else {
        this.$message.warning("请先选择专业班次!");
        return;
      }
    },
    //重置
    resetAll(){
      this.selectList1[0].val = '';
      this.selectList_Teacher = '';
      this.multipleSelection = [];
    },
    submitData() {
      if (this.multipleSelection.length == 0) {
        this.$message.warning("请至少选择一个专业班次!");
        return;
      }
      if (this.zybcType == "single") {
        if (this.multipleSelection.length > 1) {
          this.$message.warning("只能选择一个专业班次!");
          return;
        }
      }
      this.zybcDialog = false;
    },
    // 获取部门
    async queryCommonNjNdzy() {
      const res = await queryCommonNjNdzy();
      if (res.data.code == 200) {
        var tmpData = res.data.data;
        if (tmpData.length > 0) {
          var njList = [];
          tmpData.forEach((item) => {
            var children = [];
            if (item.list.length > 0) {
              item.list.forEach((da) => {
                var child = {
                  id: da.id,
                  label: da.specialtyName + "[" + da.trainingLevel + "]",
                };
                children.push(child);
              });
            }
            var parent = {
              id: item.nj,
              label: item.nj,
              children: children,
            };
            njList.push(parent);
          });
          this.data = njList;
        }
      }
    },
    handleNodeClick(val, node) {
      if (node.level == 2) {
        this.selectTreeRow = val;
        this.queryZybcList();
      }
    },
    // 查询专业班次数据列表
    async queryZybcList() {
      var trainingLevel = "";
      var year = "";
      var yearSpecialtyId = this.selectTreeRow.id;
      const res = await bpksj_query_specialty(
        trainingLevel,
        year,
        yearSpecialtyId,
        1,
        50
      );
      if (res.data.code == 200) {
        this.tableData_People = res.data.data.records;
      }
    },
    // 获取学期列表
    async queryCommonXueqi() {
      const res = await queryCommonXueqi();
      if (res.data.code == 200) {
        this.selectList1[0].valList = res.data.data;
        // this.selectList1[0].val = this.selectList1[0].valList[0].id;
      }
    },
    // 确认删除
    deletedInfoSubmit() {
      this.deletedMessageDialog = false;
      this.multipleSelection = [];
    },
    deletedInfo() {
      this.deletedMessageDialog = true;
    },
    queryInfo() {},
    handleSelectionChange(val) {
      this.multipleSelection = val;
    },
    // 选择专业班次
    editZYBC(str) {
      this.zybcType = str;
      this.zybcDialog = true;
      this.queryCommonNjNdzy();
    },
    // 视角切换
    changeVisual(val) {
      this.visualChange = val;
      this.multipleSelection = [];
    },
  },
  computed: {}, //计算属性
};
</script>
<style lang="less" scoped>
.assessment-container {
  .el-dialog__body {
    height: 251px;
  }
  .el-dialog__footer {
    padding: 10px 20px 45px;
  }
  .el-checkbox__inner:hover {
    border-color: #004ca7;
  }
  .el-checkbox__inner {
    border: 1px solid #004ca7;
    border-radius: 0;
    height: 18px;
    width: 18px;
  }
  .el-checkbox__inner::after {
    height: 10px;
    left: 6px;
  }
  .el-checkbox__input.is-checked .el-checkbox__inner,
  .el-checkbox__input.is-indeterminate .el-checkbox__inner {
    background-color: #004ca7;
    border-color: #004ca7;
  }
  .el-checkbox__input.is-checked + .el-checkbox__label {
    color: #004ca7;
  }
  .el-checkbox.is-bordered.is-checked {
    border-color: #004ca7;
  }
  .el-checkbox__input.is-focus .el-checkbox__inner {
    border-color: #004ca7;
  }
}
</style>
<style lang="less" scoped>
@import "../../../../styles/text.less";
.pagination-block {
  margin-top: 20px;
  display: flex;
  flex-direction: row;
  justify-content: center;
}
</style>
<style lang="less" scoped>
@import "../../../../styles/supervision.less";

.wrapper-container {
  width: 1711px;
  margin: 0 auto;
}

/deep/ .table-container {
  .el-table td,
  .el-table th.is-leaf,
  .el-table--border,
  .el-table--group {
    border-color: #c7d7eb;
  }

  .el-table__header tr,
  .el-table__header th {
    padding: 0;
    height: 76px;
    background-color: #edf2f9;
    font-size: 16px;
    font-family: Microsoft YaHei;
    font-weight: bold;
    line-height: 20px;
    color: #004ca7;
  }

  .el-table__body tr,
  .el-table__body td {
    padding: 0;
    height: 86px;
  }

  .wrapper-button {
    display: flex;
    flex-direction: column;
    align-items: center;

    > div {
      margin-bottom: 8px;
    }
  }
  .table-data {
    width: 100%;
    border: 0.8px solid #004ca7;
    /*border-radius: 9px;*/
    font-size: 14px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #004ca7;
  }
}

.wrapper-container .search-container .search-container-left {
  width: 100%;
  flex-wrap: wrap;
  .search-container-item {
    width: 20%;
    margin-right: 0px;
    .box {
      > span {
        text-align: left;
      }
      display: flex;
      justify-content: space-evenly;
      // margin-bottom: 20px;
      align-items: center;
      /deep/ .el-input__inner {
        height: 28px;
      }
    }
  }
}

/deep/.el-date-editor.el-input {
  width: 110px;
}
/deep/ .el-input--medium {
  width: 110px;
  .el-input__inner {
    height: 28px;
    width: 110px;
    padding: 0px 18px;
  }
}
/deep/ .el-table thead {
  color: #004ca7 !important;
}

.btn {
  margin-top: 271px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 271px;
  .submit {
    width: 84px;
    height: 27px;
    line-height: 8px;
  }
}
.bottom-block {
  // display: flex;
  flex-direction: row;
  justify-content: space-between !important;
  .export-button {
    width: 127px;
    height: 27px;
    background: #fff6ef;
    border: 1px solid #f3b815;
    border-radius: 4px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    > img {
      width: 17px;
      height: 17px;
    }
    > span {
      margin-left: 12px;
      font-size: 14px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: #f3b815;
    }
  }
  .text {
    font-size: 14px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    line-height: 39px;
    color: #004ca7;
  }
}

.search-button {
  width: 77px;
  height: 28px;
  line-height: 28px;
  background: #f1f8fe;
  border: 1px solid #51aef6;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  > span {
    font-size: 16px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #51aef6;
  }
  > img {
    width: 20px;
    height: 20px;
    margin-right: 4px;
  }
}

.body-manual-container {
  > div:nth-child(1) {
    width: calc(100% - 20px);
    border: 1px solid rgba(0, 76, 167, 0.8);
    border-radius: 6px;
    margin: 30px auto 0;
    ul {
      list-style: none;
      li:nth-child(n) {
        border-bottom: 1px solid rgba(0, 76, 167, 0.4);
        height: auto;
        > span {
          box-sizing: border-box;
          display: inline-block;
          font-size: 14px;
          color: rgba(0, 76, 167, 1);
          // padding-left: 54px;
          border-right: 1px solid rgba(0, 76, 167, 0.4);
          height: 60px;
          // padding-top: 20px;
          vertical-align: middle;
          &:nth-child(n) {
            width: 12.5%;
            height: 100px;
          }
          &:last-child {
            border-right: none;
          }
          &.active {
            font-size: 16px;
            color: rgba(0, 76, 167, 1);
            font-weight: bold;
            background: rgba(77, 129, 192, 0.1);
            text-align: center;
            padding-left: 0;
          }
          > span {
            color: rgba(255, 56, 25, 1);
          }
          > div {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
          }
        }
      }
      li:nth-child(1) {
        > span {
          &:nth-child(n) {
            width: 12.5%;
            height: 60px;
            font-weight: bold;
          }
          > div {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
          }
        }
      }
    }
  }
}

.body-manual-container-more {
  > div:nth-child(1) {
    width: calc(100% - 20px);
    // height: 785px;
    border: 1px solid rgba(0, 76, 167, 0.8);
    border-radius: 6px;
    margin: 30px auto 0;
    ul {
      list-style: none;
      li:nth-child(n) {
        color: #004ca7;
        display: flex;
        align-items: center;
        border-bottom: 1px solid rgba(0, 76, 167, 0.4);
        height: auto;
        > span {
          box-sizing: border-box;
          display: inline-block;
          font-size: 14px;
          color: rgba(0, 76, 167, 1);
          border-right: 1px solid rgba(0, 76, 167, 0.4);
          height: 60px;
          vertical-align: middle;
          &:nth-child(n) {
            width: 250px;
            height: 100px;
          }
          &:last-child {
            width: 1480px;
            border-right: none;
          }
          &.active {
            font-size: 16px;
            color: rgba(0, 76, 167, 1);
            font-weight: bold;
            background: rgba(77, 129, 192, 0.1);
            text-align: center;
            padding-left: 0;
          }
          > span {
            color: rgba(255, 56, 25, 1);
          }
          > div {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
          }
          > div:nth-child(2) {
            width: calc(100% - 250px);
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
          }
        }
      }
      li:nth-child(1) {
        > span {
          &:nth-child(n) {
            width: 250px;
            height: 60px;
            font-weight: bold;
          }
          &:nth-last-child(1) {
            width: calc(100% - 500px);
            height: 60px;
            font-weight: bold;
          }
          > div {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
          }
        }
      }
    }
  }
}
.day-list {
  width: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.section-item {
  width: 100%;
  display: flex;
  align-items: center;
  height: 60px;
  border-left: 1px solid rgba(0, 76, 167, 0.4);
  border-bottom: 1px solid rgba(0, 76, 167, 0.4);

  .section {
    width: 250px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(0, 76, 167, 0.4);
  }

  .text {
    width: calc(100% - 250px);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
.section-item:nth-last-child(1) {
  border-bottom: 0;
}

.export-right1 {
  display: flex;
  align-items: center;
  justify-content: end;
}
.change-visual {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-right: 20px;
  > div {
    width: 100px;
    padding: 5px 15px;
    border-radius: 5px;
    margin: 0 10px;
    border: 1px solid #004ca7;
    color: #004ca7;
    cursor: pointer;
  }

  .active {
    background: #004ca7;
    color: #fff;
  }
}
.del-icon {
  color: #ff492e;
  font-size: 20px;
  margin-left: 10px;
  cursor: pointer;
}

.xzjy {
  /deep/ .el-dialog {
    height: 650px;
  }
}
/deep/ .xzjy .el-dialog__body {
  padding: 0 !important;
  .wrapper-container {
    width: 100% !important;
  }
  .wrapper-container .search-container .search-container-left {
    margin-left: 20px;
    flex-wrap: wrap;
    .search-container-item {
      width: 200px;
      margin-right: 10px;
      .box {
        > span {
          text-align: left;
          width: 80px;
        }
        display: flex;
        justify-content: space-evenly;
        margin-bottom: 20px;
        align-items: center;
        .el-input--medium .el-input__inner {
          height: 28px;
        }
        /deep/ .el-input__inner {
          height: 28px;
        }
      }
    }
  }
}

/deep/ .el-tree-node__expand-icon.expanded {
  color: rgb(0, 76, 167);
}

.xzjy .tree {
  padding: 30px;
  color: rgb(0, 76, 167);
  font-weight: bold;
  font-size: 16px;
  height: 480px;
  overflow-y: auto;
}
.select-list {
  display: flex;
  width: 650px;
  color: #004ca7;

  .yx {
    font-size: 18px;
    padding-left: 10px;
  }
  .cont {
    width: 580px;
    display: flex;
    overflow: auto;

    .tip {
      font-size: 18px;
      margin: 0 5px;
    }
  }
}

.zybc-select {
  display: flex;
  align-items: center;
  width: 200px;
  height: 28px;
  border: 1px solid;
  border-radius: 5px;
  cursor: pointer;
  .show {
    height: 28px;
    width: 200px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    overflow: hidden;
    flex-wrap: wrap;
    flex-direction: column;
    > div {
      padding: 0 10px;
    }
  }
}

.select-dialog {
  width: 300px;
  display: flex;
  color: #004ca7;
}

.class-tip {
  color: #004ca7;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  margin: 40px;
}

.export-top {
  cursor: pointer;
  width: 127px;
  height: 33px;
  background: #fff6ef;
  border: 1px solid #f3b815;
  border-radius: 4px;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  flex-direction: row;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  > img {
    width: 17px;
    height: 17px;
  }
  > span {
    color: #f3b815;
  }
}
</style>

<style lang="less" scoped>
  #professional-schedule-query-main{
    /deep/ .el-button--warning.is-plain{
      background: #FFF6EF;
      border-color: #F3B815;
      color: #F3B815;
      border-radius: 6px;
    }
    /deep/ .el-button--warning.is-plain:focus, .el-button--warning.is-plain:hover{
      color: #F3B815;
      background: #FFF6EF;
      border: 1px solid #F3B815;
      border-radius: 6px;
    }

    /deep/ .el-button--success.is-plain{
      background: #F1FFF8;
      border-color: #02C86C;
      color: #02C86C;
      border-radius: 6px;
    }
    /deep/ .el-button--success.is-plain:hover{
      background: #F1FFF8;
      border: 1px solid #02C86C;
      color: #02C86C;
      border-radius: 6px;
    }

    /deep/ .el-button--primary.is-plain{
      background: #F1F8FE;
      border-color: #51AEF6;
      color: #51AEF6;
      border-radius: 6px;
    }

    /deep/ .el-button--primary.is-plain:hover{
      background: #F1F8FE;
      border: 1px solid #51AEF6;
      color: #51AEF6;
      border-radius: 6px;
    }

    /deep/ .el-button--danger.is-plain{
      background: #FFEFEF;
      border-color: #FF3819;
      color: #FF3819;
      border-radius: 6px;
    }

    /deep/ .el-button--danger.is-plain:hover{
      background: #FFEFEF;
      border: 1px solid #FF3819;
      color: #FF3819;
      border-radius: 6px;
    }
  }
</style>
